package com.example.feignService;

import com.csq.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "dm-user-provider", fallback = UserFeignFallBack.class)
public interface UserFeignService {

    @RequestMapping(value = "login", method = RequestMethod.POST)
    public String login(@RequestBody User user);

    @RequestMapping(value = "get/{username}", method = RequestMethod.GET)
    public User get(@PathVariable("username") String username);
}
